#ifndef DRAWFORM_H
#define DRAWFORM_H

#include <QWidget>
#include "dwgline.h"
#include "dwgcircle.h"
#include "dwgrectangle.h"

QT_BEGIN_NAMESPACE
namespace Ui { class DrawForm; }
QT_END_NAMESPACE

class DrawForm : public QWidget
{
Q_OBJECT
protected:
    void mousePressEvent(QMouseEvent *event) override;
    void paintEvent(QPaintEvent *event) override;
    void keyPressEvent(QKeyEvent *event) override;

public:
    DrawForm(QWidget *parent = nullptr);
    ~DrawForm();

    QPainter *painter;
    QList<DwgObject *> MainList;

    int mDrawType;
private:
    Ui::DrawForm *ui;
};
#endif // DRAWFORM_H
